stubdom: fix -Wextra usage in vtpm_emulator
authorOlaf Hering <olaf@aepfle.de>
Tue, 22 Jul 2014 07:19:17 +0000 (09:19 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Jul 2014 15:23:18 +0000 (16:23 +0100)
commited4ef4bf2dce354b0cdde8460698fc0b50cf8975
treebc43717b4f8500ef9c4a614d8b076c2af1e4eaf4
parentc552a43edb69a3a93e51360a65e44768aa1b0944
stubdom: fix -Wextra usage in vtpm_emulator

If -Wextra is appended to CFLAGS it will enable all warnings. Previous
options such as -Wno-unused-parameters have no effect anymore. As a
result compilation will fail with gcc-4.3. Newer versions of gcc will
appearently remember -Wno-* options before -Wextra.
Rearrange warning options for gcc so that -Wextra comes before other -W
options. This fixes compilation of stubdom in SLES11.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
stubdom/Makefile
stubdom/vtpm-cmake-Wextra.patch [new file with mode: 0644]